package org.leon.config;

import org.leon.service.MyService;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by leon.L on 2020/2/5.
 * Desc :
 */
@EnableConfigurationProperties
@Configuration
public class MyConfig {

    @Bean(name = "iService")
    public MyService myService(){
        return new MyService();
    }
}
